package fudan.se.project.repository.entity.conference.production;


import fudan.se.project.domain.conference.production.Paper;
import fudan.se.project.domain.conference.production.Writer;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WriterRepository extends CrudRepository<Writer, Long> {

    Writer findById(long id);

    void deleteAllByPaper(Paper paper);

}
